package com.lovo.order.service;

import com.lovo.dto.TicketVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "movieSys")
public interface IRemoteMovieService {
    @GetMapping("/movie/updateMovieNum/{movieNumber}/{num}")
    public  boolean updateMovieNum(@PathVariable("movieNumber")String movieNumber,
                                   @PathVariable("num")int num);
    @PostMapping("/movie/updateMovieNum")
    public  boolean updateMovieNumPost(@RequestBody TicketVo ticketVo);
}
